//
//  TextLogin.m
//  SUZHOUBANK
//
//  Created by 白衣沽酒。 on 16/4/12.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import "TextLogin.h"

@implementation TextLogin

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle]loadNibNamed:@"TextLogin" owner:self options:nil][0];
        self.frame = frame;
        self.layer.borderColor = [UIColor greenColor].CGColor;
        self.layer.borderWidth = 1.0f;
//        self.accountTextField.layer.cornerRadius = 5;
//        self.passwordTextField.layer.cornerRadius = 5;
        self.layer.cornerRadius = 5;
        self.layer.masksToBounds = YES;
    }
    return self;
}

- (IBAction)respondToLoginBTN:(id)sender {
    if (self.accountTextField.text.length != 0 && self.passwordTextField.text.length != 0) {
        [self removeFromSuperview];
    }
}


@end
